<?php
/*
 * @Descripttion: 
 * @Author: dedeye
 * @Date: 2020-02-25 16:28:03
 * @LastEditors: dedeye
 * @LastEditTime: 2020-03-01 15:45:48
 */
$init = [
    "clearInfo" => [ // 清空缓存
        "clearUrl" => "#"
    ],
    "homeInfo" => [ // 后台首页
        "title" => "首页",
        "icon" => "fa fa-home",
        "href" => "/admin/welcome"
    ],
    "adminOperation" => [
        [
            'title' => '基本信息',
            'href' => '/admin/no'
        ],
        [
            'title' => '修改密码',
            'href' => '/admin/no'
        ],
    ],
    "logoInfo" => [  // 后台 logo
        "title" => "DEDE-ADMIN",
        "image" => "/static/admin/images/logo.png",
        "href" => "/admin"
    ]
];

$default_menu = [
    "cg" => [
        "title" => "常规管理",
        "icon" => "layui-icon layui-icon-layer",
        "child" => [
            [
                "title" => "用户管理-defalt",
                "icon" => "layui-icon layui-icon-layer",
                "href" => "/admin/user",
                "target" => "_self"
            ],
            [
                "title" => "菜单管理-defalt",
                "icon" => "layui-icon layui-icon-layer",
                "href" => "/admin/menu",
                "target" => "_self"
            ],
            [
                "title" => "权限组管理-defalt",
                "icon" => "layui-icon layui-icon-layer",
                "href" => "/admin/group",
                "target" => "_self"
            ]
        ]
    ]
];
return [
    'super_admin' => 1,
    'permission_url' => [
        '/admin',
        '/admin/welcome',
        '/admin/init',
        '/admin/logout',
        '/admin/no-auth'
    ],
    'init' => $init,
    'default_menu' => $default_menu,
    'aes' => [
        'key' => 'NWg2VkV4U0ZsSkZ0SXNsNFFXdXJzZz09',
        'iv' => '2342534543543523',
        'options' => 0,
        'method' => 'AES-128-CBC'
    ]
];